<script type="text/javascript">
	var firstLogin = getParameterByName("firstLogin");
	l(firstLogin);
	if (firstLogin == 1) {
		l("hier udn so");
		$(document).ready(function() {
			$("#myModalFirstLogin").modal({
				backdrop : "static",
				keyboard : false
			});

			// Form Validierung
			//$("#firstLoginForm").validate({
			//	rules: {
			//	regionSelect: {
			//		required: true
			//}
			//}
			//});

		});
	}
</script>
<!-- FirstLogin -->

<form action="." method="post" id="firstLoginForm">
	<div id="myModalFirstLogin" class="modal hide fade" tabindex="-1"
		role="dialog" aria-labelledby="myModalFirstLogin" aria-hidden="true">
		<div class="modal-header">
			<h3 id="myModalFirstLoginLabel" align="center">Welcome to DotA2
				League</h3>
		</div>
		<div class="modal-body" align="center">
			<h4>
				Hello <img src="{$userAvatarMed}" alt="Avatar" width="20">
				{$userName}!<br> You successfully signed in to DotA2 League
			</h4>

			<p>
				Your Start-Elo in all current availabled Matchmodes is: <strong>{$elo}</strong>
			</p>
			<div class="row-fluid">{include "prototypes/eloCarousel.tpl"
				carouselID=firstLoginCarousel spanClass=span12 eloArray=$eloArray
				modi=$modi matchTypeID=1}</div>
			<!-- Landauswahl -->
			<!--       <DIV ID="REGIONSELECTAREA"> -->
			<!--       	<H5>REGION SELECTION</H5> -->
			<!--         FOR BETTER MATCHMAKING, PLEASE CHOOSE YOUR REGION WHERE YOU ARE PLAYING CURRENTLY -->
			<!--         <SELECT NAME="REGIONSELECT" ID="REGIONSELECT" > -->
			<!--           <OPTION VALUE="">-PLEASE CHOOSE YOUR REGION-</OPTION> -->
			<!--           <OPTION VALUE="EU">EUROPE</OPTION> -->
			<!--           <OPTION VALUE="USW">US-WEST</OPTION> -->
			<!--           <OPTION VALUE="USE">US-EAST</OPTION> -->
			<!--           <OPTION VALUE="EUE">EUROPE-EAST</OPTION> -->
			<!--           <OPTION VALUE="RU">RUSSIA</OPTION> -->
			<!--           <OPTION VALUE="SEA">SOUTHEAST ASIA</OPTION> -->
			<!--           <OPTION VALUE="AU">AUSTRALIA</OPTION> -->
			<!--           <OPTION VALUE="SA">SOUTH AMERICA</OPTION> -->
			<!--           <OPTION VALUE="CH">CHINA</OPTION> -->
			<!--         </SELECT> -->
			<!--       </DIV> -->

		</div>
		<!-- ModalBody-End -->
		<div class="modal-footer">
			<button class="btn" type="button" onClick="handleViewProfile();">View
				Profile</button>
			<button class="btn btn-primary" type="button"
				onClick="handleFindMatch();">Alright, find a Match!</button>
		</div>
	</div>
	</div>
</form>
